package com.yuxl.admin.manager.auth.core.repository;

import com.yuxl.admin.manager.auth.core.entity.AuthUserRole;
import org.springframework.data.repository.reactive.ReactiveCrudRepository;
import reactor.core.publisher.Flux;

import java.util.List;

public interface AuthUserRoleRepository extends ReactiveCrudRepository<AuthUserRole, Long> {
    Flux<AuthUserRole> findByUserId(Long userId);
    Flux<AuthUserRole> findByRoleId(Long roleId);
    Flux<AuthUserRole> findByUserIdIn(List<Long> userIds);
}
